function db (sql, callback) {
    var mysql = require('mysql');
    var conn = mysql.createConnection({
        host: 'localhost',
        user: 'root',
        password: '',
        database: 'demo1'
    });
    conn.connect();
    conn.query(sql, callback);
    conn.end();
}

module.exports = db;